package com.heny.nc;

import com.alibaba.fastjson.JSON;
import com.heny.nc.model.SaveTypeEnum;

/**
 * @author litao.cc
 * @version CNTest.java v0.1 t2025/4/26 19:37
 * @date 2025/4/26 19:37
 * @description 测试
 */
public class CNTest {
    public static void main(String[] args) {
        String inputFile = "youpath\\heny-demo\\src\\main\\java\\com\\heny\\nc\\NMC_HENAN_RH-AVG_L2M_G005_20240312000000_H24_H1.NC"; // NC文件路径
        String outputFile = "youpath\\20250423电力设计院\\heny-demo\\src\\main\\java\\com\\heny\\nc"; // 输出文件路径
        NCFileHandler handler = new NCFileHandler(inputFile,outputFile, SaveTypeEnum.txt);
        handler.apply();
        System.out.println(handler.getBaseFileName());
        System.out.println(JSON.toJSONString(handler.getFilePathList()));

    }
}
